//
//  TestRepeate.swift
//  ABCRepeateClick_Example
//
//  Created by luoshizhen on 2024/7/26.
//  Copyright © 2024 luoshizhen. All rights reserved.
//

import UIKit
class TestViewController: UIViewController {

    override func viewDidLoad(){
        super.viewDidLoad()
        let btn:UIButton = UIButton(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
        btn.backgroundColor = UIColor.red
        self.view.addSubview(btn)
        btn.addTarget(self, action: #selector(btnPressed), for: UIControlEvents.touchUpInside)
        // Do any additional setup after loading the view, typically from a nib.
    }
    @objc func btnPressed (){
//        guard self.view.abcPreventRepeateClickAction(3)else{
//            return;
//        }
        
        self.view.abcPreventRepeateClickAction(3.0) {
            print("dddd");
        }
        
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}


